package com.fwx.basic.inner_class;

/**
 * @author : fengwenxiang
 * @date : 2022/5/14 14:02
 * @description：私有成员内部类
 */
public class OutClass_PrivateMemberInner {

    /**私有内部类**/
    private class PrivateInnerClass implements PrivateInterface{
        private int commonVar = 50;
        public void show(){
            System.out.println("私有内部类向上转型 : 多态");
        }
    }
    /**获取PrivateInnerClass对象**/
    public PrivateInnerClass getPrivateInnerInstance(){
        return new PrivateInnerClass();
    }
}
